package com.kc.business.mapper;

import com.kc.business.domain.BizBusinessCoupon;
import com.kc.business.domain.BizUserBusinessCoupon;
import com.kc.common.core.dao.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商家优惠券mapper
 */
public interface BizBusinessCouponMapper extends BaseMapper<BizBusinessCoupon> {
    /**
     * 优惠券列表
     * @param businessId
     * @param status
     * @param currDate
     * @return
     */
    List<BizBusinessCoupon> getCouponList(@Param("businessId") Integer businessId, @Param("status") Integer status,@Param("currDate") String currDate,@Param("isDeleted") Integer isDeleted);

    /**
     * 获取商家用户领取优惠券列表
     * @param couponId
     * @return
     */
    List<BizUserBusinessCoupon> getUserCouponList(@Param("couponId") Integer couponId);
}
